package com.log.com.log.service.impl;

import java.text.SimpleDateFormat;

/**
 * 日志入口
 * @author dell
 *
 */
public class LogService {

	
	private JLogBaseService log;
	
	/**
	 * 构造器
	 * @param logName
	 */
	public LogService(String logName ){
		log=new JLogBaseService( new SimpleDateFormat("HH:mm:ss_SSS"),String.format("'%s/'yyyy-MM-dd'/"+logName+".'HH'.log'", "log/"));
		
	}
	
	/**
	 * 保存日志
	 * @param msg
	 */
	public void saveLog(String msg){
		log.saveTrace(msg);
	}
	
}
